package rentadomus

class House {

    Dwelling idDwelling
    int floors
    
    static constraints = {
        floors blank:false, min:1
    }
    static mapping ={
        version false
        idDwelling column:'id_dwelling'
    }
    
    public String toString(){
        "${idDwelling.getIdPlace().toString()}"
    }
}
